package utils;

/**
 * @author  francois.pfister@ema.fr  31/08/2009
 */
import java.io.*;
import java.util.ArrayList;
import java.util.List;



public class StringReader {

    public static List<String> read(String filename) {
	List<String> result = new ArrayList<String>();
	try {
	    FileReader fr = new FileReader(filename);
	    BufferedReader br = new BufferedReader(fr);
	    String s;
	    while ((s = br.readLine()) != null) {
		//System.out.println(s);
		result.add(s);
	    }
	    fr.close();
	} catch (Exception e) {
	    e.printStackTrace();
	}
	return result;
    }

}
